package com.java46.front.payMethod.dao;

import com.java46.admin.base.util.HibernateUtils;
import com.java46.front.payMethod.entity.PaymethodEntity;
import org.hibernate.Session;
import org.hibernate.query.Query;

import java.util.ArrayList;
import java.util.List;

public class PayMethoDao {

    public List<PaymethodEntity> query_payme(){
        List<PaymethodEntity> list =new ArrayList<>();
        Session session = HibernateUtils.getSession();
        Query query = session.createQuery("from com.java46.front.payMethod.entity.PaymethodEntity");
        list=query.list();
        session.close();
        return list;
    }
}
